package com.talos.ums.controller.admin.roleuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 角色用户关系表新增/修改 Request VO")
@Data
public class UmsRoleUserSaveReqVO {

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "4995")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14760")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "角色表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14067")
    @NotNull(message = "角色表ID不能为空")
    private Long roleId;

    @Schema(description = "用户编码")
    private String userCode;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "仓库编码")
    private String warehouseCode;

}
